import apiClient from '@/api/apiClient';

// 列表
const getOnlineUsersList = (data?: {
  page: number;
  take: number;
  app?: string;
  count?: string;
  userId?: number;
}) => apiClient.get({ url: '/sessions', params: data });

// 踢下线
const disableOnlineUser = (id: string) => apiClient.post({ url: `/session/disable/${id}` });

export default {
  getOnlineUsersList,
  disableOnlineUser,
};
